<%--
    jsp页面 本质上就是一个Servlet
    Servlet 主要功能是接收请求 做出响应
    jsp 对比 Servlet 更收擅长于页面的编写  java+html
    page 指令
    pageEncoding="UTF-8"
 --%>
<%@page pageEncoding="UTF-8" %>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<h2></h2>

<script src="https://unpkg.com/axios/dist/axios.js"></script>
<script>

    // axios({
    //     method: 'POST',
    //     url: 'http://localhost:8080/emp/update',
    //     data: {"empno":1001,"ename":"zhansgan","age":20}
    // }).then(res=>{
    //     console.log(res.data);
    // })
    axios({
        method: 'POST',
        url: 'http://localhost:8080/business',
        data: {
            "businessAccount":"dhsjkhdask",
            "businessName":"美味小吃",
            "businessAddress":"新乡市",
            "businessExplain":"好吃不贵",
            "businessImg":"",
            "startPrice":18,
            "deliveryPrice":8,
            "remarks":""
        }
    }).then(res=>{
        console.log(res.data);
    })

</script>

</body>
</html>
